﻿namespace Ordering.Domain.SeedWork
{
    public interface IUnitOfWork
    {
        /// <summary>
        /// 把数据发送到数据，注意此时数据并未持久化，有回滚的可能性
        /// </summary>
        /// <param name="token"></param>
        /// <returns></returns>
        Task SaveEntitiesAsync(CancellationToken token);
    }
}
